package com.github.tangmonkmeat;

/**
 * Description:
 *
 * @author zwl
 * @version 1.0
 * @date 2021/7/19 下午3:17
 */
public class 三数排列之和的个数 {

    public static void main(String[] args) {
        
        getRes(0);

        System.out.println(n);

    }

    static int n = 0;

    public static int getRes(int cur){
        if (cur == 11){
            n++;
            return 0;
        }else if(cur > 11){
            return 1;
        }
        for (int j = 1;j <= 3;j++){
            int res = getRes(cur + j);
            if (res == 0){
                return -1;
            }else if(res == 1){
                break;
            }
        }
        return -1;
    }
}
